package bean.factory.xml;

import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

/**
 * @Author com.alibaba.lizhen
 * @Date 2021/4/8 9:13 下午
 * @Version 1.0
 * @Description
 */
public class XmlBeanFactoryTest {
	public static void main(String[] args) {
		XmlBeanFactory factory = new XmlBeanFactory(new ClassPathResource("bean.factory.xml/bean.xml"));
		MyBean bean = (MyBean) factory.getBean("myBean");
		System.out.println("bean = " + bean);
	}
}
